package com.sh.data.engine.domain.base.model.param;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.Getter;

import java.util.Date;

/**
 * @author: mengzheng.mhc
 * @date: 2024/6/12 16:43
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public abstract class BaseModel {

    /**
     * 能够实现ObjectId跟String之间的自动转换
     */
    @Getter
    protected Long id;

    protected Date createTime;
    protected String creatorId;
    protected Date updateTime;
    protected String updaterId;
}
